package com.accompany.service;

import com.accompany.entity.User;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author DC
 * @since 2024-12-26
 */
public interface UserService extends IService<User> {

    void createUser(User user);

    void deleteUser(Long id);

    void updateUser(User user);

    User getUserById(Long id);

    List<User> getAllUsers();

    Page<User> getPaginatedUsers(Integer page, Integer size);
}
